package com.lzy.pattern.template;

/**
 * @ClassName: CookCaiXin
 * @Description: 炒菜心
 * @Author: LiuZy
 * @Date: 2022/4/27 10:03
 * @Version: 1.0
 */
public class CookCaiXin extends Cook {

    @Override
    void pourVegetable() {
        System.out.println("放入菜心");
    }

    @Override
    void pourSauce() {
        System.out.println("放入蒜蓉");
    }

    /**
     * 炒菜心，不需要热油，重写
     * @return
     */
    @Override
    Boolean isHeatOil() {
        return false;
    }
}